<template>
	<view class="mainpadding">
		<template v-if="type==1">
			<u-parse :content="systeminfo.dh_user_xy"></u-parse>
		</template>
		<template v-if="type==2">
			<u-parse :content="systeminfo.dh_user_yszc"></u-parse>
		</template>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				type:1,//1用户协议，2隐私政策
				systeminfo:{}
			}
		},
		onLoad(options) {
			this.type = options.type
			if(options.type==1){
				uni.setNavigationBarTitle({
					title:"用户协议"
				})
			}else if(options.type==2){
				uni.setNavigationBarTitle({
					title:"隐私政策"
				})
			}
			this.system()
		},
		methods: {
			system(){
				httpRequest.request('/api/index/getConfigInfo','GET',{}).then(res => {
					this.systeminfo = res.data
				})
			}
		}
	}
</script>

<style>

</style>
